#include<iostream>
#include<ctime>

using namespace std;

int main()
{
  const time_t t = time(0);
  cout << "time :"  << t <<endl;
  cout << "ctime:" << ctime(&t)<<endl;
  struct tm * tt = localtime(&t);
  cout << "localtime " <<  tt->tm_year+1900 << ":" << tt->tm_mon+1<< ":"<< tt->tm_mday<<endl;
  
  
  return 0;
 	

}
